using System;
using System.Windows.Forms;
using OhioState.Graphics.Proxy;

namespace OhioState.Controls.GLSL
{
    public partial class GLSLShaderEditorCtrl : UserControl
    {
        public GLSLShaderEditorCtrl()
        {
            InitializeComponent();
            glslEditorCtrl1.Init(typeof(VertexShader));
            glslEditorCtrl2.Init(typeof(FragmentShader));
        }

        //
        // Public properties to expose the compile and link events for these controls
        //
        public GLSLEditorCtrl.CompileHandler CompileEvent
        {
            get { return glslEditorCtrl1.CompileEvent; }
            set
            {
                glslEditorCtrl1.CompileEvent = value;
                glslEditorCtrl2.CompileEvent = value;
            }
        }

        public GLSLLinkerCtrl.LinkHandler LinkEvent
        {
            get { return glslLinkerCtrl1.LinkEvent; }
            set
            {
                glslLinkerCtrl1.LinkEvent = value;
            }
        }

        private void tabControl1_Resize(object sender, EventArgs e)
        {
            return;

        }
    }
}
